/**
 * @Description: button 开放能力
 * @Author: Zander
 * @Date: 2023/1/5 10:21
 * @LastEditors: Zander
 * @LastEditTime: 2023/1/5 10:21
 */
export default {
  props: {
    openType: String
  },
  methods: {
    onGetUserInfo(event) {
      this.$emit('getUserInfo', event.detail)
    },
    onContact(event) {
      this.$emit('contact', event.detail)
    },
    onGetPhoneNumber(event) {
      this.$emit('getPhoneNumber', event.detail)
    },
    onError(event) {
      this.$emit('error', event.detail)
    },
    onLaunchApp(event) {
      this.$emit('launchApp', event.detail)
    },
    onOpenSetting(event) {
      this.$emit('openSetting', event.detail)
    }
  }
}
